#!/bin/bash
path=`pwd`
cd ./QSeaWarServer/src

if [ "$1" == 'all' ]; then
	make clean
	make all -j3
elif [ "$1" == 'clean' ]; then
	make clean
else
	make clean
	make all -j3
fi
cp Server $path

cd ../../TestClient/src
if [ "$1" == 'all' ]; then
	make clean
	make all -j3
elif [ "$1" == 'clean' ]; then
	make clean
else
	make clean
	make all -j3
fi
cp Client $path


cd $path
